<?php echo $this->doctype( );?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->lang?>" <?php echo ('he'== $this->lang ) ? 'dir="rtl"':'' ; ?> lang="<?php echo $this->lang;?>" >
	<head>
		 <?php
		 	$baseUrl = $this->baseUrl( );
		    echo $this->headMeta( )->setIndent( 4 );
	     	echo $this->headTitle( )->setIndent( 4 );
	    	echo $this->headScript( )->setIndent( 4 );
	    	echo $this->headLink( )->setIndent( 4 );
	    ?>
	</head>
	<body dir="ltr" style="text-align: right;">
		<div id="pageWrapper">
			<div id="header">
				<div style="float:right;"><h1><?php echo $this->translate( 'מסגרות שעשוע' );?></h1></div>
				
				<?php if($this->hasIdentity):?>
					<br />
					<span class="title" ><?php echo $this->translate( 'שלום' ).' '.$this->username?></span>
					<div style="float:left;">
						<a href="<?php echo $this->url( array( 'module' => 'admin','controller' => 'auth','action' => 'logout' ) );?>" ><?php echo $this->translate( 'יציאה' );?></a>
					</div>
				<?php endif;?>
			</div>
			<div id="nav" dir="rtl" >
				<?php echo $this->render('menu.phtml');?>&nbsp;
			 	
        	</div>
        	<div id="sidebar" style="display:none;">
	        	<div id="searchForm" >
					<h2><?php echo $this->translate('חיפוש באתר');?></h2>
				</div>
				<div id="feeds">
					<h2>Feeds</h2>
					<p><a href="<?php echo $baseUrl;?>/feed/rss" >Click Here</a> to subscribe to our RSS feed.</p>
				</div>
				<div id="subNav"> <?php echo $this->layout()->subNav; ?>&nbsp;</div>
				<div id="adminMenu">
            		<?php echo $this->layout()->adminMenu;?>&nbsp;
        		</div>
				<div id="userForm">
            		<?php echo $this->layout()->userForm;?>&nbsp;
        		</div>
			</div>	
			<div id="main" >
				<?php
					 echo $this->layout( )->content; 
					 echo $this->render('db/profiler.phtml');
				?>
			</div>
			<div id="footer" dir="rtl" >
       			<br />
					תפוצות ישראל 6, גבעתיים | טל': 5715545 - 03 | פקס 5715540 - 03 | דוא&quot;ל: <a href="mailto:shashua.frame@gmail.com">shashua.frame@gmail.com</a><br />
				<br />
			</div>
		</div>
		
	</body>
</html>
